package woaini.wind.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;

@Data
@Entity
@Table(name = "tool_minio_config")
public class MinIOConfig implements Serializable {

  @Id
  @Column(name = "config_id")
  @Schema(title = "ID")
  private Long id;

  /**
   * 连接地址
   */
  private String endpoint;

  /**
   * 桶名称
   */
  @Column(name = "bucket_name")
  private String bucketName;

  /**
   * 账号
   */
  @Column(name = "access_key")
  private String accessKey;

  /**
   * 密码
   */
  @Column(name = "secret_key")
  private String secretKey;

  /**
   * 图片大小
   */
  @Column(name = "img_size")
  private Integer imgSize;

  /**
   * 文件大小
   */
  @Column(name = "file_size")
  private Integer fileSize;

  /**
   * 分隔符
   */
  @Transient
  private String separator = "/";
}
